package cn.jinjimi.app.main.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;

import cn.jinjimi.framework.plugin.Plugin;
import cn.jinjimi.app.AccountManager;
import cn.jinjimi.app.R;
import cn.jinjimi.app.plugin.InnerWebPluginManager;
import cn.jinjimi.app.plugin.SimplePluginManager;
import cn.jinjimi.app.main.activity.ActivateThemeActivity;

/**
 * Created by HANER on 15/2/10.
 */
public class ThemeSuccDialog extends Dialog implements View.OnClickListener {

    private View no;
    private View ok;
    private Context mContext;

    public ThemeSuccDialog(Context context) {
        super(context, R.style.TransparentDialog);
        mContext = context;
        initView();
        initListener();
    }
    public void initView(){
        setContentView(R.layout.dialog_theme_activate_success);
        no = findViewById(R.id.bt_no);
        ok = findViewById(R.id.bt_yes);
    }
    public void initListener(){
        no.setOnClickListener(this);
        ok.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.bt_yes:
                break;
        }
        dismiss();
    }

    @Override
    public void dismiss() {
        super.dismiss();
        //回来前一个页面
        ((ActivateThemeActivity)mContext).finishThis();
    }
}
